import java.util.Arrays;

public class Test {

    public static void main(String[] args) {
        Dog dog = new Dog("coffee", 3);
        System.out.println(dog);

        /*int[] array = new int[5];
        System.out.println(Arrays.toString(array));*/
    }
    public static void main2(String[] args) {
        Dog dog = new Dog("黑子", 6);
        // dog.printDog();
    }

    public static void main1(String[] args) {
        Dog dog = new Dog();
        Dog dog1 = new Dog();

        dog.name = "黑子";
        dog.age = 2;
        dog.bark();
        dog.sleep();

        dog1.name = "哈士奇";
        dog1.age = 3;
        dog1.bark();
        dog1.sleep();
    }
}
